﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.MT3DMS.DomainLayer
{
    [Serializable]
   public class SPPolygonConc:ICloneable
    {

        public SPPolygonConc(int nrow,int ncol)
        {
            this._conc=new double[nrow,ncol];
 
        }
        public SPPolygonConc()
        {
        }


        bool _usePrecious = false;

        public bool UsePrecious
        {
            get { return _usePrecious; }
            set { _usePrecious = value; }
        }

        double[,] _conc;

        public double[,] Conc
        {
            get { return _conc; }
            set { _conc = value; }
        }


        public void OnResetGrid(int nrow, int ncol)
        {

            this._conc = new double[nrow, ncol];
 
        }


        public object Clone()
        {
            SPPolygonConc conc = new SPPolygonConc();
            conc = (SPPolygonConc)this.MemberwiseClone();
            conc.Conc =(double[,])this._conc.Clone ();
            return conc;

        }
    }
}
